HAL JPEG state and error functions migration

This section provides information about HAL JPEG state and error handling for STM32 HAL1 to HAL2 migration.

HAL JPEG get state

HAL1

HAL2

HAL_JPEG_GetState(const JPEG_HandleTypeDef *hjpeg)
HAL_JPEG_GetState(const hal_jpeg_handle_t *hjpeg)

Note

New API has been provided to get encoder configuration state:

HAL_JPEG_GetEncoderState(const hal_jpeg_handle_t *hjpeg)

Related concept:


HAL JPEG get error codes

HAL1

HAL2

HAL_JPEG_GetError(const JPEG_HandleTypeDef *hjpeg)
HAL_JPEG_GetLastErrorCodes(const hal_jpeg_handle_t *hjpeg)